# $Id: PKGBUILD 79472 2012-11-06 00:37:14Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: royrocks <royrocks13@gmail.com>

pkgname=tuxpaint-config
pkgver=0.0.12
pkgrel=2
pkgdesc='Tux Paint configuration tool'
arch=('x86_64' 'i686')
url='http://www.tuxpaint.org'
license='GPL'
depends=('tuxpaint' 'fltk' 'libxft' 'libxext')
source=("http://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.tar.gz")
sha256sums=('9395a1c92e52c3420cabaa0c781b607e6832b5d9b6180902615f102216e1c8fd')

build() {
 cd $srcdir/$pkgname-$pkgver

 make PREFIX=/usr
}

package() {
 cd $srcdir/$pkgname-$pkgver

 install -d -m755 $pkgdir/usr/bin/
 install -d -m644 $pkgdir/opt/kde/share/icons/hicolor/48x48/apps/
 install -d -m644 $pkgdir/opt/kde/share/icons/hicolor/32x32/apps/
 install -d -m644 $pkgdir/opt/kde/share/icons/hicolor/16x16/apps/

 make PREFIX=$pkgdir/usr DESTDIR=$pkgdir KDE_PREFIX=$pkgdir/opt/kde \
   KDE_ICON_PREFIX=$pkgdir/opt/kde/share/icons install

 install -D -m644 src/tuxpaint-config.desktop \
   $pkgdir/usr/share/applications/tuxpaint-config.desktop
}

# vim:set ts=2 sw=2 et:
